#ifndef XMLFILE_H
#define XMLFILE_H

#include <QtXml>
#include <QXmlDefaultHandler>

class XMLFile : public QXmlDefaultHandler
{

public:

XMLFile();
~XMLFile();
QStringList return_data();
bool startElement( const QString & ns,
                   const QString & localName,
                   const QString & qName,
                   const QXmlAttributes & attributes );
bool endElement( const QString & ns,
                 const QString & localName,
                 const QString & qName );
bool fatalError( const QXmlParseException & exception );
QString errorString() const;

private:

int count;
QString errorStr;
bool metatag;
QStringList l;

};

#endif // XMLFILE_H
